package com.hducms.cms.entity.main;

import java.util.Date;


public class CmsLog {
	public static final int LOGIN_SUCCESS = 1;
	public static final int LOGIN_FAILURE = 2;
	public static final int OPERATING = 3;

	/* [CONSTRUCTOR MARKER BEGIN] */
	public CmsLog () {
	}

	/**
	 * Constructor for primary key
	 */
	public CmsLog (java.lang.Integer logId) {
		setLogId(logId);
	}


	/* [CONSTRUCTOR MARKER END] */

	// many to one
	private com.hducms.cms.entity.main.CmsUser user;


    /**
     * This field corresponds to the database column jc_log.log_id
     */
    private Integer logId;

    /**
     * This field corresponds to the database column jc_log.user_id
     */
    private Integer userId;

    /**
     * This field corresponds to the database column jc_log.site_id
     */
    private Integer siteId;

    /**
     * This field corresponds to the database column jc_log.category
     */
    private Integer category;

    /**
     * This field corresponds to the database column jc_log.log_time
     */
    private Date logTime;

    /**
     * This field corresponds to the database column jc_log.ip
     */
    private String ip;

    /**
     * This field corresponds to the database column jc_log.url
     */
    private String url;

    /**
     * This field corresponds to the database column jc_log.title
     */
    private String title;

    /**
     * This field corresponds to the database column jc_log.content
     */
    private String content;

    /**
     * This method returns the value of the database column jc_log.log_id
     * @return the value of jc_log.log_id
     */
    public Integer getLogId() {
        return logId;
    }

    /**
     * This method sets the value of the database column jc_log.log_id
     * @param logId the value for jc_log.log_id
     */
    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    /**
     * This method returns the value of the database column jc_log.user_id
     * @return the value of jc_log.user_id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * This method sets the value of the database column jc_log.user_id
     * @param userId the value for jc_log.user_id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * This method returns the value of the database column jc_log.site_id
     * @return the value of jc_log.site_id
     */
    public Integer getSiteId() {
        return siteId;
    }

    /**
     * This method sets the value of the database column jc_log.site_id
     * @param siteId the value for jc_log.site_id
     */
    public void setSiteId(Integer siteId) {
        this.siteId = siteId;
    }

    /**
     * This method returns the value of the database column jc_log.category
     * @return the value of jc_log.category
     */
    public Integer getCategory() {
        return category;
    }

    /**
     * This method sets the value of the database column jc_log.category
     * @param category the value for jc_log.category
     */
    public void setCategory(Integer category) {
        this.category = category;
    }

    /**
     * This method returns the value of the database column jc_log.log_time
     * @return the value of jc_log.log_time
     */
    public Date getLogTime() {
        return logTime;
    }

    /**
     * This method sets the value of the database column jc_log.log_time
     * @param logTime the value for jc_log.log_time
     */
    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    /**
     * This method returns the value of the database column jc_log.ip
     * @return the value of jc_log.ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * This method sets the value of the database column jc_log.ip
     * @param ip the value for jc_log.ip
     */
    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    /**
     * This method returns the value of the database column jc_log.url
     * @return the value of jc_log.url
     */
    public String getUrl() {
        return url;
    }

    /**
     * This method sets the value of the database column jc_log.url
     * @param url the value for jc_log.url
     */
    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    /**
     * This method returns the value of the database column jc_log.title
     * @return the value of jc_log.title
     */
    public String getTitle() {
        return title;
    }

    /**
     * This method sets the value of the database column jc_log.title
     * @param title the value for jc_log.title
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * This method returns the value of the database column jc_log.content
     * @return the value of jc_log.content
     */
    public String getContent() {
        return content;
    }

    /**
     * This method sets the value of the database column jc_log.content
     * @param content the value for jc_log.content
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

	public com.hducms.cms.entity.main.CmsUser getUser() {
		return user;
	}

	public void setUser(com.hducms.cms.entity.main.CmsUser user) {
		this.user = user;
	}


}